package org.jeecg.modules.demo.baseordercommoditywriteoff.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 订单待核销商品表
 * @Author: jeecg-boot
 * @Date: 2022-02-11
 * @Version: V1.0
 */
@Data
@TableName("base_order_commodity_writeoff")

@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "base_order_commodity_writeoff对象", description = "订单待核销商品表")
public class BaseOrderCommodityWriteoff implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private String createBy;
    /**
     * 创建日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
    /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    /**
     * 更新日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
    /**
     * 所属部门
     */
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
    /**
     * 订单id
     */
    @Excel(name = "订单id", width = 15)
    @ApiModelProperty(value = "订单id")
    private String orderId;
    /**
     * 项目id
     */
    @Excel(name = "项目id", width = 15)
    @ApiModelProperty(value = "项目id")
    private String orderProjectId;
    /**
     * 商品名称
     */
    @Excel(name = "商品名称", width = 15)
    @ApiModelProperty(value = "商品名称")
    private String commodityName;
    /**
     * 全部数量
     */
    @Excel(name = "全部数量", width = 15)
    @ApiModelProperty(value = "全部数量")
    private Integer totalQty;
    /**
     * 剩余数量
     */
    @Excel(name = "剩余数量", width = 15)
    @ApiModelProperty(value = "剩余数量")
    private Integer remainQty;
    /**
     * 核销数量
     */
    @Excel(name = "核销数量", width = 15)
    @ApiModelProperty(value = "核销数量")
    private Integer writeoffQty;
    /**
     * 核销时间
     */
    @Excel(name = "核销时间", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "核销时间")
    private Date writeoffTime;
    /**
     * 操作人员（存当前登录用户id）
     */
    @Excel(name = "操作人员（存当前登录用户id）", width = 15)
    @ApiModelProperty(value = "操作人员（存当前登录用户id）")
    private String operator;
    /**
     * 核销状态（0：未核销，1：已核销）
     */
    @Excel(name = "核销状态（0：未核销，1：已核销）", width = 15)
    @ApiModelProperty(value = "核销状态（0：未核销，1：已核销）")
    private Integer status;

    private String storeId;
    private String operatorName;
}
